package org.listbeast.core.observer;

/**
 * Class is used to communicate data between main application and registered observers 
 * (e.g. the percentage done (in order to update the progress bar in the GUI))
 * @author ody
 *
 */
public class NotificationData {

	private int progressPercentage;
	private String data;
	

	public NotificationData(int progressPercentage, String data) {
		this.progressPercentage = progressPercentage;
		this.data = data;
	}

	public NotificationData(int progressPercentage) {
		this(progressPercentage, "");
	}

	public NotificationData(String data) {
		this(0, data);
	}
	
	public int getProgressPercentage() {
		return progressPercentage;
	}

	public void setProgressPercentage(int progressPercentage) {
		this.progressPercentage = progressPercentage;
	}
	
	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}
}
